<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/semi/semiwarehouse/SemiWarehouse.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/semi/semiwarehouse/SemiWarehouse.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: '半成品仓库',
                name: 'semiwarehouse/SemiWarehouse',
                url: "/SemiWarehouse/",
                sortName: "id"
            });
            const editFormFields = ref({"SemiWarehouseNo":"","SemiWarehouseName":"","SemiWarehouseLocation":"","OperationNo":"","SemiWarehouseDate":"","SemiWarehouseDesc":""});
            const editFormOptions = ref([[{"title":"半成品仓库编号","field":"SemiWarehouseNo","type":"text"}],
                              [{"title":"半成品仓库名称","field":"SemiWarehouseName","type":"text"}],
                              [{"title":"半成品仓库位置","field":"SemiWarehouseLocation","type":"text"}],
                              [{"title":"所在工序","field":"OperationNo","type":"text"}],
                              [{"title":"创建时间","field":"SemiWarehouseDate","type":"text"}],
                              [{"title":"备注","field":"SemiWarehouseDesc","type":"textarea"}]]);
            const searchFormFields = ref({"SemiWarehouseNo":"","SemiWarehouseName":"","SemiWarehouseLocation":"","SemiWarehouseDesc":""});
            const searchFormOptions = ref([[{"title":"半成品仓库编号","field":"SemiWarehouseNo","type":"text"},{"title":"半成品仓库名称","field":"SemiWarehouseName","type":"like"},{"title":"半成品仓库位置","field":"SemiWarehouseLocation","type":"text"},{"title":"备注","field":"SemiWarehouseDesc","type":"like"}]]);
            const columns = ref([{field:'id',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'SemiWarehouseNo',title:'半成品仓库编号',type:'string',width:220,align:'left',sort:true},
                       {field:'SemiWarehouseName',title:'半成品仓库名称',type:'string',width:220,align:'left'},
                       {field:'SemiWarehouseLocation',title:'半成品仓库位置',type:'string',width:220,align:'left'},
                       {field:'OperationNo',title:'所在工序',type:'string',width:220,align:'left'},
                       {field:'SemiWarehouseDate',title:'创建时间',type:'string',width:220,align:'left'},
                       {field:'SemiWarehouseDesc',title:'备注',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
